import tpl from './index.tpl';
import './index.scss';

import { tplReplace } from '../../libs/utils'

export default {
    name: 'Header',
    tpl (options) {
        const {url, showLeftIcon, title, showRightIcon} = options;

        return tplReplace(tpl, {
            url, 
            title, 
            showLeftIcon: showLeftIcon ? 'block' :'none', 
            showRightIcon: showRightIcon ? 'block' :'none', 
        })
    }
}